layui.config({
	base: 'layui_exts/transfer/'
}).use(['table', 'transfer'], function() {
	var table = layui.table,
		transfer = layui.transfer,
		$ = layui.$;
	var leftCols = [
		[{
				checkbox: true,
				fixed: true
			}, {
				field: 'id',
				title: 'ID',
				width: 80,
				sort: true,
				fixed: true
			}, {
				field: 'name',
				title: '用户名'
			}, {
				field: 'sex',
				title: '性别',
				sort: true
			}

		]
	];
	var leftUrl = 'data.php';
	var rightCols = leftCols;
	var rightUrl = 'data.php';
	transfer.render({
		elem:"#container",
		leftCols: leftCols,
		leftUrl: leftUrl,
		rightCols: rightCols,
		rightUrl: rightUrl,
	});
	
});